﻿@if(ViewBag.Msg!=null)
    {
        <script language="javascript" type="text/javascript">
            $(function () {

                $("#dialog:ui-dialog").dialog("destroy");
                $("#dialog-message").dialog({
                    modal: true,
                    buttons: {
                        Ok: function () {
                            $(this).dialog("close");
                        }
                    }
                });
            });
        </script>
    
        <div id="dialog-message" title="Message window">
	        <p>
		       @ViewBag.Msg
	        </p>
        </div>
    }   